package com.mswork.mes.utils;

import com.mswork.common.utils.SecurityUtils;

/**
 * Created by manshu on 2025/3/24.
 *
 * @desc
 */
public class AuthorizeUtils {
    public static boolean hasPermi() {
        return SecurityUtils.getLoginUser().getUser().getRoles().stream().anyMatch(t -> t.getRoleKey().equals("sample"));
    }
}
